package com.example.zhugenew;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import androidx.appcompat.app.AppCompatActivity;

import com.umeng.analytics.MobclickAgent;

import java.io.Serializable;
import java.util.ArrayList;

public class HeadLineWebActivity extends AppCompatActivity {

    private WebView mWeb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_head_line_web);
        initView();
    }

    private void initView() {
        mWeb = (WebView) findViewById(R.id.web_view);
        Intent intent = getIntent();
        ArrayList<String> banners = intent.getStringArrayListExtra("banners");
       int position = intent.getIntExtra("position",0);
        mWeb.setWebViewClient(new WebViewClient());
        mWeb.loadUrl(banners.get(position));


    }
}